/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * MenuUtama.java
 *
 * Created on Aug 9, 2010, 8:56:13 PM
 */
package com.ivanbiz.gui;

/**
 *
 * @author Aprisma
 */
public class MenuUtama extends javax.swing.JFrame {

    /** Creates new form MenuUtama */
    public MenuUtama() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        desktopPane = new javax.swing.JDesktopPane();
        menuUtama = new javax.swing.JMenuBar();
        menuMaster = new javax.swing.JMenu();
        masterPemasok = new javax.swing.JMenuItem();
        masterPelanggan = new javax.swing.JMenuItem();
        masterBarang = new javax.swing.JMenuItem();
        masterSatuan = new javax.swing.JMenuItem();
        masterUser = new javax.swing.JMenuItem();
        masterBackup = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JSeparator();
        menuLogout = new javax.swing.JMenuItem();
        menuExit = new javax.swing.JMenuItem();
        menuTransaksi = new javax.swing.JMenu();
        transaksiPenjualan = new javax.swing.JMenuItem();
        transaksiPembelian = new javax.swing.JMenuItem();
        transaksiHutang = new javax.swing.JMenuItem();
        transaksiPiutang = new javax.swing.JMenuItem();
        transaksiPenjualanLain2 = new javax.swing.JMenuItem();
        transaksiBiayaLain = new javax.swing.JMenuItem();
        menuRetur = new javax.swing.JMenu();
        returPenjualan = new javax.swing.JMenuItem();
        returPembelian = new javax.swing.JMenuItem();
        tukarTambahPenjualan = new javax.swing.JMenuItem();
        menuLaporan = new javax.swing.JMenu();
        laporanPenjualan = new javax.swing.JMenuItem();
        laporanPembelian = new javax.swing.JMenuItem();
        laporanPenjualanLain2 = new javax.swing.JMenuItem();
        laporanBiayaLain2 = new javax.swing.JMenuItem();
        laporanLabaRugi = new javax.swing.JMenuItem();
        laporanHutangPiutang = new javax.swing.JMenuItem();
        laporanStockBarang = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setTitle("PT BERGUNA JAYA");

        menuMaster.setText("Master");
        menuMaster.setFont(new java.awt.Font("Tahoma", 1, 11));

        masterPemasok.setFont(new java.awt.Font("Tahoma", 1, 11));
        masterPemasok.setText("Pemasok");
        masterPemasok.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                masterPemasokActionPerformed(evt);
            }
        });
        menuMaster.add(masterPemasok);

        masterPelanggan.setFont(new java.awt.Font("Tahoma", 1, 11));
        masterPelanggan.setText("Pelanggan");
        masterPelanggan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                masterPelangganActionPerformed(evt);
            }
        });
        menuMaster.add(masterPelanggan);

        masterBarang.setFont(new java.awt.Font("Tahoma", 1, 11));
        masterBarang.setText("Barang");
        masterBarang.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                masterBarangActionPerformed(evt);
            }
        });
        menuMaster.add(masterBarang);

        masterSatuan.setFont(new java.awt.Font("Tahoma", 1, 11));
        masterSatuan.setText("Satuan");
        masterSatuan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                masterSatuanActionPerformed(evt);
            }
        });
        menuMaster.add(masterSatuan);

        masterUser.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        masterUser.setText("User");
        masterUser.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                masterUserActionPerformed(evt);
            }
        });
        menuMaster.add(masterUser);

        masterBackup.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        masterBackup.setText("BackUp Data");
        masterBackup.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                masterBackupActionPerformed(evt);
            }
        });
        menuMaster.add(masterBackup);
        menuMaster.add(jSeparator1);

        menuLogout.setFont(new java.awt.Font("Tahoma", 1, 11));
        menuLogout.setText("Logout");
        menuLogout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuLogoutActionPerformed(evt);
            }
        });
        menuMaster.add(menuLogout);

        menuExit.setFont(new java.awt.Font("Tahoma", 1, 11));
        menuExit.setText("Exit");
        menuExit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menuExitActionPerformed(evt);
            }
        });
        menuMaster.add(menuExit);

        menuUtama.add(menuMaster);

        menuTransaksi.setText("Transaksi");
        menuTransaksi.setFont(new java.awt.Font("Tahoma", 1, 11));

        transaksiPenjualan.setFont(new java.awt.Font("Tahoma", 1, 11));
        transaksiPenjualan.setText("Penjualan");
        transaksiPenjualan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                transaksiPenjualanActionPerformed(evt);
            }
        });
        menuTransaksi.add(transaksiPenjualan);

        transaksiPembelian.setFont(new java.awt.Font("Tahoma", 1, 11));
        transaksiPembelian.setText("Pembelian");
        transaksiPembelian.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                transaksiPembelianActionPerformed(evt);
            }
        });
        menuTransaksi.add(transaksiPembelian);

        transaksiHutang.setFont(new java.awt.Font("Tahoma", 1, 11));
        transaksiHutang.setText("Hutang");
        transaksiHutang.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                transaksiHutangActionPerformed(evt);
            }
        });
        menuTransaksi.add(transaksiHutang);

        transaksiPiutang.setFont(new java.awt.Font("Tahoma", 1, 11));
        transaksiPiutang.setText("Piutang");
        transaksiPiutang.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                transaksiPiutangActionPerformed(evt);
            }
        });
        menuTransaksi.add(transaksiPiutang);

        transaksiPenjualanLain2.setFont(new java.awt.Font("Tahoma", 1, 11));
        transaksiPenjualanLain2.setText("Penjualan Lain - Lain");
        transaksiPenjualanLain2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                transaksiPenjualanLain2ActionPerformed(evt);
            }
        });
        menuTransaksi.add(transaksiPenjualanLain2);

        transaksiBiayaLain.setFont(new java.awt.Font("Tahoma", 1, 11));
        transaksiBiayaLain.setText("Biaya Lain - Lain");
        transaksiBiayaLain.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                transaksiBiayaLainActionPerformed(evt);
            }
        });
        menuTransaksi.add(transaksiBiayaLain);

        menuUtama.add(menuTransaksi);

        menuRetur.setText("Retur");
        menuRetur.setFont(new java.awt.Font("Tahoma", 1, 11));

        returPenjualan.setFont(new java.awt.Font("Tahoma", 1, 11));
        returPenjualan.setText("Penjualan");
        returPenjualan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                returPenjualanActionPerformed(evt);
            }
        });
        menuRetur.add(returPenjualan);

        returPembelian.setFont(new java.awt.Font("Tahoma", 1, 11));
        returPembelian.setText("Pembelian");
        returPembelian.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                returPembelianActionPerformed(evt);
            }
        });
        menuRetur.add(returPembelian);

        tukarTambahPenjualan.setFont(new java.awt.Font("Tahoma", 1, 11));
        tukarTambahPenjualan.setText("Tukar/Tambah Penjualan");
        tukarTambahPenjualan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tukarTambahPenjualanActionPerformed(evt);
            }
        });
        menuRetur.add(tukarTambahPenjualan);

        menuUtama.add(menuRetur);

        menuLaporan.setText("Laporan");
        menuLaporan.setFont(new java.awt.Font("Tahoma", 1, 11));

        laporanPenjualan.setFont(new java.awt.Font("Tahoma", 1, 11));
        laporanPenjualan.setText("Penjualan");
        laporanPenjualan.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                laporanPenjualanActionPerformed(evt);
            }
        });
        menuLaporan.add(laporanPenjualan);

        laporanPembelian.setFont(new java.awt.Font("Tahoma", 1, 11));
        laporanPembelian.setText("Pembelian");
        laporanPembelian.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                laporanPembelianActionPerformed(evt);
            }
        });
        menuLaporan.add(laporanPembelian);

        laporanPenjualanLain2.setFont(new java.awt.Font("Tahoma", 1, 11));
        laporanPenjualanLain2.setText("Penjualan Lain - Lain");
        laporanPenjualanLain2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                laporanPenjualanLain2ActionPerformed(evt);
            }
        });
        menuLaporan.add(laporanPenjualanLain2);

        laporanBiayaLain2.setFont(new java.awt.Font("Tahoma", 1, 11));
        laporanBiayaLain2.setText("Biaya Lain - Lain");
        laporanBiayaLain2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                laporanBiayaLain2ActionPerformed(evt);
            }
        });
        menuLaporan.add(laporanBiayaLain2);

        laporanLabaRugi.setFont(new java.awt.Font("Tahoma", 1, 11));
        laporanLabaRugi.setText("Laba Rugi");
        laporanLabaRugi.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                laporanLabaRugiActionPerformed(evt);
            }
        });
        menuLaporan.add(laporanLabaRugi);

        laporanHutangPiutang.setFont(new java.awt.Font("Tahoma", 1, 11));
        laporanHutangPiutang.setText("Hutang Piutang");
        laporanHutangPiutang.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                laporanHutangPiutangActionPerformed(evt);
            }
        });
        menuLaporan.add(laporanHutangPiutang);

        laporanStockBarang.setFont(new java.awt.Font("Tahoma", 1, 11));
        laporanStockBarang.setText("Stock Barang");
        laporanStockBarang.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                laporanStockBarangActionPerformed(evt);
            }
        });
        menuLaporan.add(laporanStockBarang);

        menuUtama.add(menuLaporan);

        setJMenuBar(menuUtama);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(desktopPane, javax.swing.GroupLayout.DEFAULT_SIZE, 984, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(desktopPane, javax.swing.GroupLayout.DEFAULT_SIZE, 541, Short.MAX_VALUE)
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-1000)/2, (screenSize.height-600)/2, 1000, 600);
    }// </editor-fold>//GEN-END:initComponents

    private void masterSatuanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_masterSatuanActionPerformed
        MasterSatuan masterSatuan = new MasterSatuan();
        desktopPane.add(masterSatuan);
        masterSatuan.setVisible(true);
    }//GEN-LAST:event_masterSatuanActionPerformed

    private void masterPemasokActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_masterPemasokActionPerformed
        MasterSupplier masterSupplier = new MasterSupplier();
        desktopPane.add(masterSupplier);
        masterSupplier.setVisible(true);
}//GEN-LAST:event_masterPemasokActionPerformed

    private void masterBarangActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_masterBarangActionPerformed
        MasterBarang masterBarang = new MasterBarang();
        desktopPane.add(masterBarang);
        masterBarang.setVisible(true);
    }//GEN-LAST:event_masterBarangActionPerformed

    private void transaksiPenjualanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_transaksiPenjualanActionPerformed
        TransaksiPenjualan transaksiPenjualan = new TransaksiPenjualan();
        desktopPane.add(transaksiPenjualan);
        transaksiPenjualan.setVisible(true);
    }//GEN-LAST:event_transaksiPenjualanActionPerformed

    private void masterPelangganActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_masterPelangganActionPerformed
        MasterCustomer masterCustomer = new MasterCustomer();
        desktopPane.add(masterCustomer);
        masterCustomer.setVisible(true);
}//GEN-LAST:event_masterPelangganActionPerformed

    private void transaksiPenjualanLain2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_transaksiPenjualanLain2ActionPerformed
        TransaksiPenjualanLain transaksiPenjualanLain = new TransaksiPenjualanLain();
        desktopPane.add(transaksiPenjualanLain);
        transaksiPenjualanLain.setVisible(true);
}//GEN-LAST:event_transaksiPenjualanLain2ActionPerformed

    private void transaksiBiayaLainActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_transaksiBiayaLainActionPerformed
        TransaksiBiayaLain trasaksiBiayaLain = new TransaksiBiayaLain();
        desktopPane.add(trasaksiBiayaLain);
        trasaksiBiayaLain.setVisible(true);
}//GEN-LAST:event_transaksiBiayaLainActionPerformed

    private void transaksiHutangActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_transaksiHutangActionPerformed
        TransaksiHutang transaksiHutang = new TransaksiHutang();
        desktopPane.add(transaksiHutang);
        transaksiHutang.setVisible(true);
    }//GEN-LAST:event_transaksiHutangActionPerformed

    private void transaksiPembelianActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_transaksiPembelianActionPerformed
        TransaksiPembelian transaksiPembelian = new TransaksiPembelian();
        desktopPane.add(transaksiPembelian);
        transaksiPembelian.setVisible(true);
    }//GEN-LAST:event_transaksiPembelianActionPerformed

    private void transaksiPiutangActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_transaksiPiutangActionPerformed
        TransaksiPiutang transaksiPiutang = new TransaksiPiutang();
        desktopPane.add(transaksiPiutang);
        transaksiPiutang.setVisible(true);
    }//GEN-LAST:event_transaksiPiutangActionPerformed

    private void menuLogoutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuLogoutActionPerformed
        Login login = new Login();
        login.setVisible(true);
        this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        this.setVisible(false);
    }//GEN-LAST:event_menuLogoutActionPerformed

    private void menuExitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuExitActionPerformed
        System.exit(0);
    }//GEN-LAST:event_menuExitActionPerformed

    private void laporanPenjualanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_laporanPenjualanActionPerformed
        LaporanPenjualan laporanPenjualan = new LaporanPenjualan();
        desktopPane.add(laporanPenjualan);
        laporanPenjualan.setVisible(true);
    }//GEN-LAST:event_laporanPenjualanActionPerformed

    private void laporanLabaRugiActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_laporanLabaRugiActionPerformed
        LaporanLabaRugi laporanLabaRugi = new LaporanLabaRugi();
        desktopPane.add(laporanLabaRugi);
        laporanLabaRugi.setVisible(true);
    }//GEN-LAST:event_laporanLabaRugiActionPerformed

    private void laporanPenjualanLain2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_laporanPenjualanLain2ActionPerformed
        LaporanPenjualanLain2 laporanPenjualanLain2 = new LaporanPenjualanLain2();
        desktopPane.add(laporanPenjualanLain2);
        laporanPenjualanLain2.setVisible(true);
    }//GEN-LAST:event_laporanPenjualanLain2ActionPerformed

    private void laporanPembelianActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_laporanPembelianActionPerformed
        LaporanPembelian laporanPembelian = new LaporanPembelian();
        desktopPane.add(laporanPembelian);
        laporanPembelian.setVisible(true);
    }//GEN-LAST:event_laporanPembelianActionPerformed

    private void laporanBiayaLain2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_laporanBiayaLain2ActionPerformed
        LaporanBiayaLain2 laporanBiayaLain2 = new LaporanBiayaLain2();
        desktopPane.add(laporanBiayaLain2);
        laporanBiayaLain2.setVisible(true);
    }//GEN-LAST:event_laporanBiayaLain2ActionPerformed

    private void masterUserActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_masterUserActionPerformed
        MasterUser masterUser = new MasterUser();
        desktopPane.add(masterUser);
        masterUser.setVisible(true);
    }//GEN-LAST:event_masterUserActionPerformed

    private void returPenjualanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_returPenjualanActionPerformed
        FReturPenjualan fReturPenjualan = new FReturPenjualan();
        desktopPane.add(fReturPenjualan);
        fReturPenjualan.setVisible(true);
    }//GEN-LAST:event_returPenjualanActionPerformed

    private void returPembelianActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_returPembelianActionPerformed
        FReturPembelian fReturPembelian = new FReturPembelian();
        desktopPane.add(fReturPembelian);
        fReturPembelian.setVisible(true);
    }//GEN-LAST:event_returPembelianActionPerformed

    private void tukarTambahPenjualanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tukarTambahPenjualanActionPerformed
        TukarPenjualan tukarPenjualan = new TukarPenjualan();
        desktopPane.add(tukarPenjualan);
        tukarPenjualan.setVisible(true);
    }//GEN-LAST:event_tukarTambahPenjualanActionPerformed

    private void laporanHutangPiutangActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_laporanHutangPiutangActionPerformed
        LaporanUtangPiutang laporanUtangPiutang = new LaporanUtangPiutang();
        desktopPane.add(laporanUtangPiutang);
        laporanUtangPiutang.setVisible(true);
}//GEN-LAST:event_laporanHutangPiutangActionPerformed

    private void laporanStockBarangActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_laporanStockBarangActionPerformed
        LaporanStockBarang laporanStockBarang = new LaporanStockBarang();
        desktopPane.add(laporanStockBarang);
        laporanStockBarang.setVisible(true);
}//GEN-LAST:event_laporanStockBarangActionPerformed

    private void masterBackupActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_masterBackupActionPerformed
        MasterBackup backup = new MasterBackup();
        desktopPane.add(backup);
        backup.setVisible(true);
    }//GEN-LAST:event_masterBackupActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JDesktopPane desktopPane;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JMenuItem laporanBiayaLain2;
    private javax.swing.JMenuItem laporanHutangPiutang;
    private javax.swing.JMenuItem laporanLabaRugi;
    private javax.swing.JMenuItem laporanPembelian;
    private javax.swing.JMenuItem laporanPenjualan;
    private javax.swing.JMenuItem laporanPenjualanLain2;
    private javax.swing.JMenuItem laporanStockBarang;
    private javax.swing.JMenuItem masterBackup;
    public javax.swing.JMenuItem masterBarang;
    public javax.swing.JMenuItem masterPelanggan;
    public javax.swing.JMenuItem masterPemasok;
    public javax.swing.JMenuItem masterSatuan;
    public javax.swing.JMenuItem masterUser;
    public javax.swing.JMenuItem menuExit;
    private javax.swing.JMenu menuLaporan;
    public javax.swing.JMenuItem menuLogout;
    public javax.swing.JMenu menuMaster;
    private javax.swing.JMenu menuRetur;
    private javax.swing.JMenu menuTransaksi;
    private javax.swing.JMenuBar menuUtama;
    private javax.swing.JMenuItem returPembelian;
    private javax.swing.JMenuItem returPenjualan;
    private javax.swing.JMenuItem transaksiBiayaLain;
    private javax.swing.JMenuItem transaksiHutang;
    private javax.swing.JMenuItem transaksiPembelian;
    private javax.swing.JMenuItem transaksiPenjualan;
    private javax.swing.JMenuItem transaksiPenjualanLain2;
    private javax.swing.JMenuItem transaksiPiutang;
    public javax.swing.JMenuItem tukarTambahPenjualan;
    // End of variables declaration//GEN-END:variables
}
